//
//  HLDoctorView.m
//  NewKY
//
//  Created by 罗浩林 on 16/11/16.
//  Copyright © 2016年 Dee. All rights reserved.
//

#import "HLDoctorView.h"
#import <UIImageView+WebCache.h>

@interface HLDoctorView ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *hospitalLabel;

@property (weak, nonatomic) IBOutlet UILabel *reservationCountLabel;

@property (weak, nonatomic) IBOutlet UILabel *flowerLabel;

@property (weak, nonatomic) IBOutlet UILabel *flagsLabel;

@end

@implementation HLDoctorView


-(void)setModel:(HLDoctorDetailsModel *)model{
    
    NSURL * url = [NSURL URLWithString:model.doctor_portrait];
    
    [self.iconImageView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"HL_doctorCount"]];
    
    self.nameLabel.text = [NSString stringWithFormat:@"%@ %@",model.doctor_name,model.doctor_title_name];
    
    self.hospitalLabel.text = [NSString stringWithFormat:@"%@-%@",model.hospital_name,model.department_name];
    
    self.reservationCountLabel.text = [NSString stringWithFormat:@"预约数:%zd",model.operation_count];
    
    self.flowerLabel.text = [NSString stringWithFormat:@"鲜花数:%zd",model.flower];
    
    self.flagsLabel.text =[NSString stringWithFormat:@"旗帜数:%zd",model.banner];
    
}


@end
